package com.yiwannuofulasi.oauth;

import com.yiwannuofulasi.oauth.api.OauthClientDetailsCustomService;
import com.yiwannuofulasi.oauth.dto.OauthClientDetailsListByClientNameQry;
import com.yiwannuofulasi.oauth.dto.data.OauthDTO;
import com.yiwannuofulasi.oauth.executor.OauthClientDetailsAddCmdExe;
import com.yiwannuofulasi.oauth.executor.query.OauthClientDetailsListByClientNameQryExe;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yiwannuofulasi
 * @description TODO
 * @date 2023/4/20 16:30
 * Copyright (c) 2023/4/20 by yiwannuofulasi yiwannuofulasi@163.com, by 新疆兵团勘测设计院（集团）有限公司 All Rights Reserved.
 */
@Service
public class OauthClientDetailsCustomServiceImpl implements OauthClientDetailsCustomService {

    @Resource
    private OauthClientDetailsAddCmdExe oauthClientDetailsAddCmdExe;

    @Resource
    private OauthClientDetailsListByClientNameQryExe oauthClientDetailsListByClientNameQryExe;


    @Override
    public List<OauthDTO> queryOauthClientDetailsListByClientName(OauthClientDetailsListByClientNameQry oauthClientDetailsListByClientNameQry) {
        return oauthClientDetailsListByClientNameQryExe.execute(oauthClientDetailsListByClientNameQry);
    }
}
